home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / set_driver_hook < prev    next >
Text File  |  2001-06-30  |  3KB  |  82 lines

  1. SYNOPSIS
  2.         void set_driver_hook(int what, closure arg)
  3.         void set_driver_hook(int what, string arg)
  4.         void set_driver_hook(int what, string * arg)
  5.  
  6. DESCRIPTION
  7.         This privileged efun sets the driver hook 'what' (values are
  8.         defined in /sys/driver_hook.h) to 'arg'.
  9.         The exact meanings and types of 'arg' depend of the hook set.
  10.         To remove a hook, set 'arg' to 0.
  11.  
  12.         These hooks exist:
  13.  
  14.         H_MOVE_OBJECT0
  15.         H_MOVE_OBJECT1
  16.           arg: unbound lambda
  17.           Mandatory hooks implementing the move_object() efun.
  18.  
  19.         H_LOAD_UIDS
  20.         H_CLONE_UIDS
  21.           arg: unbound lambda or lfun closure
  22.           Mandatory hooks to determine the (e)uid of new objects.
  23.  
  24.         H_CREATE_SUPER
  25.         H_CREATE_OB
  26.         H_CREATE_CLONE
  27.         H_RESET
  28.         H_CLEAN_UP
  29.           arg: lambda closure (H_CLEAN_UP also accepts a lfun
  30.             closure), function name.
  31.           Optional hooks for creation/reset/clean up-actions.
  32.  
  33.         H_MODIFY_COMMAND
  34.           arg: lambda closure, lfun closure, function name, mapping
  35.           Optional hook for modifying player commands before the
  36.           parser sees them.
  37.  
  38.         H_NOTIFY_FAIL
  39.           arg: lambda closure, lfun closure, string.
  40.           Mandatory hook to generate the default message if an entered
  41.           command couldn't be parsed and no notify_fail() command is
  42.           in effect.
  43.  
  44.         H_SEND_NOTIFY_FAIL
  45.           arg: lambda closure, lfun closure, string.
  46.           Optional hook to deliver the notify fail message from a failed
  47.           command.
  48.  
  49.         H_NO_IPC_SLOT
  50.           arg: string.
  51.           Optional hook specifying the 'sorry' messages if logins are
  52.           rejected due to fullness of the mud.
  53.  
  54.         H_INCLUDE_DIRS
  55.           arg: lambda closure, lfun closure, string array.
  56.           Semi-mandatory hook specifying the directories where <>-type
  57.           include files are searched.
  58.  
  59.         H_TELNET_NEG
  60.           arg: lambda closure, lfun closure, string.
  61.           Optional hook to specifiy how to perform a single telnet
  62.           negotiation.
  63.  
  64.         H_NOECHO
  65.           arg: lambda closure, lfun closure, string.
  66.           Optional hook to specifiy how to perform the telnet actions
  67.           to switch the echo mode (used for e.g. password input_to()s).
  68.         
  69.         H_ERQ_STOP
  70.           arg: lambda closure, lfun closure.
  71.           Optional hook to notify the mudlib about the termination of
  72.           the erq demon.
  73.  
  74.         See hooks(C) for a detailed discussion.
  75.  
  76. HISTORY
  77.         Introduced in 3.2.1@1 as efun309(), renamed to
  78.         set_driver_hook() in 3.2.1@13
  79.  
  80. SEE ALSO
  81.         hooks(C)
  82.